package com.fh.exception;

/**
 * 业务一次
 * Created by tugou on 2017/9/24.
 */
public class ServiceException extends Exception{

    public ServiceException(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
    /**
     * 错误码
     */
    private Integer code;
    /**
     * 错误消息
     */
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String getMessage() {
        return code+"="+msg;
    }
}
